#include "fencodegenere.h"

FenCodeGenere::FenCodeGenere(QString code) : QDialog()
{
    resultat = new QTextEdit();
    resultat->setText(code);

    fenetreCode = new QPushButton("ok!!");

    //definition du layout vertical
    QVBoxLayout *layout = new QVBoxLayout();
    layout->addWidget(fenetreCode);
    layout->addWidget(resultat);

    setLayout(layout);

}
